Skip to content

Comments

feat(auth): setup authentication with better-auth#57

Open
edwintantawi wants to merge 23 commits intodevfrom
feat/auth
Open

feat(auth): setup authentication with better-auth#57
edwintantawi wants to merge 23 commits intodevfrom
feat/auth

Conversation

@edwintantawi
Copy link
Member

No description provided.

@edwintantawi edwintantawi self-assigned this Jan 18, 2026
@edwintantawi edwintantawi added the enhancement New feature or request label Jan 18, 2026
@edwintantawi edwintantawi linked an issue Jan 18, 2026 that may be closed by this pull request
- Add authGuardFn to verify authenticated users and redirect guests to auth page
- Add guestGuardFn to verify guest users and redirect authenticated users to app
- Enhance getCurrentUserFn to return session data alongside user object
- Add authGuardInputSchema for validating redirectBack parameter
- Refactor app and auth layout routes to use new guard functions
- Remove duplicate auth checking logic from route files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Setup authentication (better-auth)

1 participant